<script>if (foo) {

  bar();

}
</script>